package shell.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
/**@author Rafael Rocha*/
public class DisposeListener implements ActionListener{
	
	private JFrame frame;
	
	public DisposeListener(JFrame frame) {
		this.frame = frame;
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		frame.dispose();
	}

}
